Learning Objectives

After completing this lesson, you’ll be able to:

Instructions

In this lesson, you will:

Note: This video was recorded using an earlier version of this exercise and appears in both this lesson and the previous one. The steps may not match exactly, but the concepts are the same.

Resources

Exercise

Frank

The missing CrimeValue problem is fixed, and Frank can now calculate walkability scores for all address records. But the city has changed its approach. Parks are no longer a useful measure because most addresses already have a park nearby.

Instead, the city wants the walkability score to include the walking distance to the nearest swimming pool. Frank can reuse most of Jennifer’s existing workflow, but he needs to replace the parks data, update the related attributes, and check whether the new results still make sense.

In this exercise, you will:

1) Add Swimming Pools

Start by adding the new dataset. The swimming pool features are stored in an OpenStreetMap dataset that includes multiple leisure facility types.

Reader Format

OpenStreetMap (OSM) XML

Reader Dataset

https://s3.amazonaws.com/FMEData/FMEData/Data/OpenStreetMap/leisure.osm or C:\FMEData\Data\OpenStreetMap\leisure.osm

Selecting the leisure feature type

2) Connect Leisure Data

Connect the new leisure data to the workspace section that calculates distance. The parks data currently feeds the Candidate input on the NeighborFinder, so you will replace that input with swimming pool data.

3) Filter Leisure Data

The leisure dataset contains more than swimming pools. Before calculating distance, filter the data so only swimming pool features continue through the workflow.

Adding and configuring a Tester to filter to only swimming pools

4) Update Transformer Parameters

Now that the data source has changed from parks to pools, several transformers still reference ParkDistance. Update them to use PoolDistance instead so the walkability calculation uses the correct attribute. 

5) Assess Walkability Output

Run the workspace and check whether the new output looks reasonable. Even when a workspace runs without errors, the output can still be incorrect. 

6) Locate the Problem

The large PoolDistance values point to a problem with the pool data. There are no helpful log messages, and the record counts look correct, so you decide to inspect the data directly to find the cause. A common cause of unexpectedly large distance values is a mismatch in coordinate systems between the two datasets being compared.

7) Fix Coordinate System Problem

Now that you have confirmed the mismatch, reproject the leisure data to match the address data before it reaches the NeighborFinder.

Adding a Reprojector

8) Confirm Walkability Scores

Run the updated part of the workspace and confirm the distance values are now reasonable.

Leave Us Feedback on This Lesson